/**
 * 	POOR		= Gray
 *	COMMON		= White
 *	UNCOMMON	= Green
 *	RARE		= Blue
 *	EPIC		= Purple 			Nice item level!
 *	LEGENDARY   = Orange 			Most über item ingame
 *	HAIRLOOM    = Light Orange 		This is a item that scale with leveling
 * 
 */

package charactergear;

public enum ArmorRarity {
	POOR,
	COMMON,
	UNCOMMON,
	RARE,
	EPIC,
	LEGENDARY,
	HAIRLOOM;
	
	public static ArmorRarity getCurrentItemRarity(int somevalue) {
		ArmorRarity rarity = null;
		switch(somevalue) {
			case 0:rarity = ArmorRarity.POOR; break;
			case 1:rarity = ArmorRarity.COMMON; break;
			case 2:rarity = ArmorRarity.UNCOMMON; break;
			case 3:rarity = ArmorRarity.RARE; break;
			case 4:rarity = ArmorRarity.EPIC; break;
			case 5:rarity = ArmorRarity.LEGENDARY; break;
			case 6:rarity = ArmorRarity.HAIRLOOM; break;
		}
		return rarity;
	}
}
